using Google.ProtocolBuffers;
using micromsg.Proto;
using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using System.IO;
using System.Runtime.CompilerServices;
namespace micromsg
{
	[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
	public sealed class EmojiUploadInfoReq : GeneratedMessageLite<EmojiUploadInfoReq, EmojiUploadInfoReq.Builder>
	{
		[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
		public sealed class Builder : GeneratedBuilderLite<EmojiUploadInfoReq, EmojiUploadInfoReq.Builder>
		{
			private bool resultIsReadOnly;
			private EmojiUploadInfoReq result;
			protected override EmojiUploadInfoReq.Builder ThisBuilder
			{
				get
				{
					return this;
				}
			}
			public override bool IsInitialized
			{
				get
				{
					return this.result.IsInitialized;
				}
			}
			protected override EmojiUploadInfoReq MessageBeingBuilt
			{
				get
				{
					return this.PrepareBuilder();
				}
			}
			public override EmojiUploadInfoReq DefaultInstanceForType
			{
				get
				{
					return EmojiUploadInfoReq.DefaultInstance;
				}
			}
			public string MD5
			{
				get
				{
					return this.result.MD5;
				}
				set
				{
					this.SetMD5(value);
				}
			}
			public int StartPos
			{
				get
				{
					return this.result.StartPos;
				}
				set
				{
					this.SetStartPos(value);
				}
			}
			public int TotalLen
			{
				get
				{
					return this.result.TotalLen;
				}
				set
				{
					this.SetTotalLen(value);
				}
			}
			public SKBuiltinBuffer_t EmojiBuffer
			{
				get
				{
					return this.result.EmojiBuffer;
				}
				set
				{
					this.SetEmojiBuffer(value);
				}
			}
			public int Type
			{
				get
				{
					return this.result.Type;
				}
				set
				{
					this.SetType(value);
				}
			}
			public string ToUserName
			{
				get
				{
					return this.result.ToUserName;
				}
				set
				{
					this.SetToUserName(value);
				}
			}
			public string ExternXML
			{
				get
				{
					return this.result.ExternXML;
				}
				set
				{
					this.SetExternXML(value);
				}
			}
			public string Report
			{
				get
				{
					return this.result.Report;
				}
				set
				{
					this.SetReport(value);
				}
			}
			public string ClientMsgID
			{
				get
				{
					return this.result.ClientMsgID;
				}
				set
				{
					this.SetClientMsgID(value);
				}
			}
			public Builder()
			{
				this.result = EmojiUploadInfoReq.DefaultInstance;
				this.resultIsReadOnly = true;
			}
			internal Builder(EmojiUploadInfoReq cloneFrom)
			{
				this.result = cloneFrom;
				this.resultIsReadOnly = true;
			}
			private EmojiUploadInfoReq PrepareBuilder()
			{
				if (this.resultIsReadOnly)
				{
					EmojiUploadInfoReq other = this.result;
					this.result = new EmojiUploadInfoReq();
					this.resultIsReadOnly = false;
					this.MergeFrom(other);
				}
				return this.result;
			}
			public override EmojiUploadInfoReq.Builder Clear()
			{
				this.result = EmojiUploadInfoReq.DefaultInstance;
				this.resultIsReadOnly = true;
				return this;
			}
			public override EmojiUploadInfoReq.Builder Clone()
			{
				if (this.resultIsReadOnly)
				{
					return new EmojiUploadInfoReq.Builder(this.result);
				}
				return new EmojiUploadInfoReq.Builder().MergeFrom(this.result);
			}
			public override EmojiUploadInfoReq BuildPartial()
			{
				if (this.resultIsReadOnly)
				{
					return this.result;
				}
				this.resultIsReadOnly = true;
				return this.result.MakeReadOnly();
			}
			public override EmojiUploadInfoReq.Builder MergeFrom(IMessageLite other)
			{
				if (other is EmojiUploadInfoReq)
				{
					return this.MergeFrom((EmojiUploadInfoReq)other);
				}
				base.MergeFrom(other);
				return this;
			}
			public override EmojiUploadInfoReq.Builder MergeFrom(EmojiUploadInfoReq other)
			{
				return this;
			}
			public override EmojiUploadInfoReq.Builder MergeFrom(ICodedInputStream input)
			{
				return this.MergeFrom(input, ExtensionRegistry.Empty);
			}
			public override EmojiUploadInfoReq.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
			{
				this.PrepareBuilder();
				uint num;
				string text;
				while (input.ReadTag(out num, out text))
				{
					if (num == 0u && text != null)
					{
						int num2 = Array.BinarySearch<string>(EmojiUploadInfoReq._emojiUploadInfoReqFieldNames, text, StringComparer.get_Ordinal());
						if (num2 < 0)
						{
							this.ParseUnknownField(input, extensionRegistry, num, text);
							continue;
						}
						num = EmojiUploadInfoReq._emojiUploadInfoReqFieldTags[num2];
					}
					uint num3 = num;
					if (num3 <= 34u)
					{
						if (num3 <= 10u)
						{
							if (num3 == 0u)
							{
								throw InvalidProtocolBufferException.InvalidTag();
							}
							if (num3 == 10u)
							{
								this.result.hasMD5 = input.ReadString(ref this.result.mD5_);
								continue;
							}
						}
						else
						{
							if (num3 == 16u)
							{
								this.result.hasStartPos = input.ReadInt32(ref this.result.startPos_);
								continue;
							}
							if (num3 == 24u)
							{
								this.result.hasTotalLen = input.ReadInt32(ref this.result.totalLen_);
								continue;
							}
							if (num3 == 34u)
							{
								SKBuiltinBuffer_t.Builder builder = SKBuiltinBuffer_t.CreateBuilder();
								if (this.result.hasEmojiBuffer)
								{
									builder.MergeFrom(this.EmojiBuffer);
								}
								input.ReadMessage(builder, extensionRegistry);
								this.EmojiBuffer = builder.BuildPartial();
								continue;
							}
						}
					}
					else
					{
						if (num3 <= 50u)
						{
							if (num3 == 40u)
							{
								this.result.hasType = input.ReadInt32(ref this.result.type_);
								continue;
							}
							if (num3 == 50u)
							{
								this.result.hasToUserName = input.ReadString(ref this.result.toUserName_);
								continue;
							}
						}
						else
						{
							if (num3 == 58u)
							{
								this.result.hasExternXML = input.ReadString(ref this.result.externXML_);
								continue;
							}
							if (num3 == 66u)
							{
								this.result.hasReport = input.ReadString(ref this.result.report_);
								continue;
							}
							if (num3 == 74u)
							{
								this.result.hasClientMsgID = input.ReadString(ref this.result.clientMsgID_);
								continue;
							}
						}
					}
					if (WireFormat.IsEndGroupTag(num))
					{
						return this;
					}
					this.ParseUnknownField(input, extensionRegistry, num, text);
				}
				return this;
			}
			public EmojiUploadInfoReq.Builder SetMD5(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasMD5 = true;
				this.result.mD5_ = value;
				return this;
			}
			public EmojiUploadInfoReq.Builder ClearMD5()
			{
				this.PrepareBuilder();
				this.result.hasMD5 = false;
				this.result.mD5_ = "";
				return this;
			}
			public EmojiUploadInfoReq.Builder SetStartPos(int value)
			{
				this.PrepareBuilder();
				this.result.hasStartPos = true;
				this.result.startPos_ = value;
				return this;
			}
			public EmojiUploadInfoReq.Builder ClearStartPos()
			{
				this.PrepareBuilder();
				this.result.hasStartPos = false;
				this.result.startPos_ = 0;
				return this;
			}
			public EmojiUploadInfoReq.Builder SetTotalLen(int value)
			{
				this.PrepareBuilder();
				this.result.hasTotalLen = true;
				this.result.totalLen_ = value;
				return this;
			}
			public EmojiUploadInfoReq.Builder ClearTotalLen()
			{
				this.PrepareBuilder();
				this.result.hasTotalLen = false;
				this.result.totalLen_ = 0;
				return this;
			}
			public EmojiUploadInfoReq.Builder SetEmojiBuffer(SKBuiltinBuffer_t value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasEmojiBuffer = true;
				this.result.emojiBuffer_ = value;
				return this;
			}
			public EmojiUploadInfoReq.Builder SetEmojiBuffer(SKBuiltinBuffer_t.Builder builderForValue)
			{
				ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
				this.PrepareBuilder();
				this.result.hasEmojiBuffer = true;
				this.result.emojiBuffer_ = builderForValue.Build();
				return this;
			}
			public EmojiUploadInfoReq.Builder MergeEmojiBuffer(SKBuiltinBuffer_t value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				if (this.result.hasEmojiBuffer && this.result.emojiBuffer_ != SKBuiltinBuffer_t.DefaultInstance)
				{
					this.result.emojiBuffer_ = SKBuiltinBuffer_t.CreateBuilder(this.result.emojiBuffer_).MergeFrom(value).BuildPartial();
				}
				else
				{
					this.result.emojiBuffer_ = value;
				}
				this.result.hasEmojiBuffer = true;
				return this;
			}
			public EmojiUploadInfoReq.Builder ClearEmojiBuffer()
			{
				this.PrepareBuilder();
				this.result.hasEmojiBuffer = false;
				this.result.emojiBuffer_ = null;
				return this;
			}
			public EmojiUploadInfoReq.Builder SetType(int value)
			{
				this.PrepareBuilder();
				this.result.hasType = true;
				this.result.type_ = value;
				return this;
			}
			public EmojiUploadInfoReq.Builder ClearType()
			{
				this.PrepareBuilder();
				this.result.hasType = false;
				this.result.type_ = 0;
				return this;
			}
			public EmojiUploadInfoReq.Builder SetToUserName(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasToUserName = true;
				this.result.toUserName_ = value;
				return this;
			}
			public EmojiUploadInfoReq.Builder ClearToUserName()
			{
				this.PrepareBuilder();
				this.result.hasToUserName = false;
				this.result.toUserName_ = "";
				return this;
			}
			public EmojiUploadInfoReq.Builder SetExternXML(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasExternXML = true;
				this.result.externXML_ = value;
				return this;
			}
			public EmojiUploadInfoReq.Builder ClearExternXML()
			{
				this.PrepareBuilder();
				this.result.hasExternXML = false;
				this.result.externXML_ = "";
				return this;
			}
			public EmojiUploadInfoReq.Builder SetReport(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasReport = true;
				this.result.report_ = value;
				return this;
			}
			public EmojiUploadInfoReq.Builder ClearReport()
			{
				this.PrepareBuilder();
				this.result.hasReport = false;
				this.result.report_ = "";
				return this;
			}
			public EmojiUploadInfoReq.Builder SetClientMsgID(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasClientMsgID = true;
				this.result.clientMsgID_ = value;
				return this;
			}
			public EmojiUploadInfoReq.Builder ClearClientMsgID()
			{
				this.PrepareBuilder();
				this.result.hasClientMsgID = false;
				this.result.clientMsgID_ = "";
				return this;
			}
		}
		public const int MD5FieldNumber = 1;
		public const int StartPosFieldNumber = 2;
		public const int TotalLenFieldNumber = 3;
		public const int EmojiBufferFieldNumber = 4;
		public const int TypeFieldNumber = 5;
		public const int ToUserNameFieldNumber = 6;
		public const int ExternXMLFieldNumber = 7;
		public const int ReportFieldNumber = 8;
		public const int ClientMsgIDFieldNumber = 9;
		private static readonly EmojiUploadInfoReq defaultInstance;
		private static readonly string[] _emojiUploadInfoReqFieldNames;
		private static readonly uint[] _emojiUploadInfoReqFieldTags;
		private bool hasMD5;
		private string mD5_ = "";
		private bool hasStartPos;
		private int startPos_;
		private bool hasTotalLen;
		private int totalLen_;
		private bool hasEmojiBuffer;
		private SKBuiltinBuffer_t emojiBuffer_;
		private bool hasType;
		private int type_;
		private bool hasToUserName;
		private string toUserName_ = "";
		private bool hasExternXML;
		private string externXML_ = "";
		private bool hasReport;
		private string report_ = "";
		private bool hasClientMsgID;
		private string clientMsgID_ = "";
		private int memoizedSerializedSize = -1;
		public static EmojiUploadInfoReq DefaultInstance
		{
			get
			{
				return EmojiUploadInfoReq.defaultInstance;
			}
		}
		public override EmojiUploadInfoReq DefaultInstanceForType
		{
			get
			{
				return EmojiUploadInfoReq.DefaultInstance;
			}
		}
		protected override EmojiUploadInfoReq ThisMessage
		{
			get
			{
				return this;
			}
		}
		public string MD5
		{
			get
			{
				return this.mD5_;
			}
		}
		public int StartPos
		{
			get
			{
				return this.startPos_;
			}
		}
		public int TotalLen
		{
			get
			{
				return this.totalLen_;
			}
		}
		public SKBuiltinBuffer_t EmojiBuffer
		{
			get
			{
				return this.emojiBuffer_ ?? SKBuiltinBuffer_t.DefaultInstance;
			}
		}
		public int Type
		{
			get
			{
				return this.type_;
			}
		}
		public string ToUserName
		{
			get
			{
				return this.toUserName_;
			}
		}
		public string ExternXML
		{
			get
			{
				return this.externXML_;
			}
		}
		public string Report
		{
			get
			{
				return this.report_;
			}
		}
		public string ClientMsgID
		{
			get
			{
				return this.clientMsgID_;
			}
		}
		public override bool IsInitialized
		{
			get
			{
				return this.hasStartPos && this.hasTotalLen && this.hasEmojiBuffer && this.hasType && this.EmojiBuffer.IsInitialized;
			}
		}
		public override int SerializedSize
		{
			get
			{
				int num = this.memoizedSerializedSize;
				if (num != -1)
				{
					return num;
				}
				num = 0;
				if (this.hasMD5)
				{
					num += CodedOutputStream.ComputeStringSize(1, this.MD5);
				}
				if (this.hasStartPos)
				{
					num += CodedOutputStream.ComputeInt32Size(2, this.StartPos);
				}
				if (this.hasTotalLen)
				{
					num += CodedOutputStream.ComputeInt32Size(3, this.TotalLen);
				}
				if (this.hasEmojiBuffer)
				{
					num += CodedOutputStream.ComputeMessageSize(4, this.EmojiBuffer);
				}
				if (this.hasType)
				{
					num += CodedOutputStream.ComputeInt32Size(5, this.Type);
				}
				if (this.hasToUserName)
				{
					num += CodedOutputStream.ComputeStringSize(6, this.ToUserName);
				}
				if (this.hasExternXML)
				{
					num += CodedOutputStream.ComputeStringSize(7, this.ExternXML);
				}
				if (this.hasReport)
				{
					num += CodedOutputStream.ComputeStringSize(8, this.Report);
				}
				if (this.hasClientMsgID)
				{
					num += CodedOutputStream.ComputeStringSize(9, this.ClientMsgID);
				}
				this.memoizedSerializedSize = num;
				return num;
			}
		}
		private EmojiUploadInfoReq()
		{
		}
		public override void WriteTo(ICodedOutputStream output)
		{
			int arg_06_0 = this.SerializedSize;
			string[] emojiUploadInfoReqFieldNames = EmojiUploadInfoReq._emojiUploadInfoReqFieldNames;
			if (this.hasMD5)
			{
				output.WriteString(1, emojiUploadInfoReqFieldNames[3], this.MD5);
			}
			if (this.hasStartPos)
			{
				output.WriteInt32(2, emojiUploadInfoReqFieldNames[5], this.StartPos);
			}
			if (this.hasTotalLen)
			{
				output.WriteInt32(3, emojiUploadInfoReqFieldNames[7], this.TotalLen);
			}
			if (this.hasEmojiBuffer)
			{
				output.WriteMessage(4, emojiUploadInfoReqFieldNames[1], this.EmojiBuffer);
			}
			if (this.hasType)
			{
				output.WriteInt32(5, emojiUploadInfoReqFieldNames[8], this.Type);
			}
			if (this.hasToUserName)
			{
				output.WriteString(6, emojiUploadInfoReqFieldNames[6], this.ToUserName);
			}
			if (this.hasExternXML)
			{
				output.WriteString(7, emojiUploadInfoReqFieldNames[2], this.ExternXML);
			}
			if (this.hasReport)
			{
				output.WriteString(8, emojiUploadInfoReqFieldNames[4], this.Report);
			}
			if (this.hasClientMsgID)
			{
				output.WriteString(9, emojiUploadInfoReqFieldNames[0], this.ClientMsgID);
			}
		}
		public override int GetHashCode()
		{
			int num = base.GetType().GetHashCode();
			if (this.hasMD5)
			{
				num ^= this.mD5_.GetHashCode();
			}
			if (this.hasStartPos)
			{
				num ^= this.startPos_.GetHashCode();
			}
			if (this.hasTotalLen)
			{
				num ^= this.totalLen_.GetHashCode();
			}
			if (this.hasEmojiBuffer)
			{
				num ^= this.emojiBuffer_.GetHashCode();
			}
			if (this.hasType)
			{
				num ^= this.type_.GetHashCode();
			}
			if (this.hasToUserName)
			{
				num ^= this.toUserName_.GetHashCode();
			}
			if (this.hasExternXML)
			{
				num ^= this.externXML_.GetHashCode();
			}
			if (this.hasReport)
			{
				num ^= this.report_.GetHashCode();
			}
			if (this.hasClientMsgID)
			{
				num ^= this.clientMsgID_.GetHashCode();
			}
			return num;
		}
		public override bool Equals(object object_0)
		{
			EmojiUploadInfoReq emojiUploadInfoReq = object_0 as EmojiUploadInfoReq;
			return emojiUploadInfoReq != null && (this.hasMD5 == emojiUploadInfoReq.hasMD5 && (!this.hasMD5 || this.mD5_.Equals(emojiUploadInfoReq.mD5_))) && (this.hasStartPos == emojiUploadInfoReq.hasStartPos && (!this.hasStartPos || this.startPos_.Equals(emojiUploadInfoReq.startPos_))) && (this.hasTotalLen == emojiUploadInfoReq.hasTotalLen && (!this.hasTotalLen || this.totalLen_.Equals(emojiUploadInfoReq.totalLen_))) && (this.hasEmojiBuffer == emojiUploadInfoReq.hasEmojiBuffer && (!this.hasEmojiBuffer || this.emojiBuffer_.Equals(emojiUploadInfoReq.emojiBuffer_))) && (this.hasType == emojiUploadInfoReq.hasType && (!this.hasType || this.type_.Equals(emojiUploadInfoReq.type_))) && (this.hasToUserName == emojiUploadInfoReq.hasToUserName && (!this.hasToUserName || this.toUserName_.Equals(emojiUploadInfoReq.toUserName_))) && (this.hasExternXML == emojiUploadInfoReq.hasExternXML && (!this.hasExternXML || this.externXML_.Equals(emojiUploadInfoReq.externXML_))) && (this.hasReport == emojiUploadInfoReq.hasReport && (!this.hasReport || this.report_.Equals(emojiUploadInfoReq.report_))) && (this.hasClientMsgID == emojiUploadInfoReq.hasClientMsgID && (!this.hasClientMsgID || this.clientMsgID_.Equals(emojiUploadInfoReq.clientMsgID_)));
		}
		public override void PrintTo(TextWriter writer)
		{
			GeneratedMessageLite<EmojiUploadInfoReq, EmojiUploadInfoReq.Builder>.PrintField("MD5", this.hasMD5, this.mD5_, writer);
			GeneratedMessageLite<EmojiUploadInfoReq, EmojiUploadInfoReq.Builder>.PrintField("StartPos", this.hasStartPos, this.startPos_, writer);
			GeneratedMessageLite<EmojiUploadInfoReq, EmojiUploadInfoReq.Builder>.PrintField("TotalLen", this.hasTotalLen, this.totalLen_, writer);
			GeneratedMessageLite<EmojiUploadInfoReq, EmojiUploadInfoReq.Builder>.PrintField("EmojiBuffer", this.hasEmojiBuffer, this.emojiBuffer_, writer);
			GeneratedMessageLite<EmojiUploadInfoReq, EmojiUploadInfoReq.Builder>.PrintField("Type", this.hasType, this.type_, writer);
			GeneratedMessageLite<EmojiUploadInfoReq, EmojiUploadInfoReq.Builder>.PrintField("ToUserName", this.hasToUserName, this.toUserName_, writer);
			GeneratedMessageLite<EmojiUploadInfoReq, EmojiUploadInfoReq.Builder>.PrintField("ExternXML", this.hasExternXML, this.externXML_, writer);
			GeneratedMessageLite<EmojiUploadInfoReq, EmojiUploadInfoReq.Builder>.PrintField("Report", this.hasReport, this.report_, writer);
			GeneratedMessageLite<EmojiUploadInfoReq, EmojiUploadInfoReq.Builder>.PrintField("ClientMsgID", this.hasClientMsgID, this.clientMsgID_, writer);
		}
		public static EmojiUploadInfoReq ParseFrom(byte[] data)
		{
			return EmojiUploadInfoReq.CreateBuilder().MergeFrom(data).BuildParsed();
		}
		private EmojiUploadInfoReq MakeReadOnly()
		{
			return this;
		}
		public static EmojiUploadInfoReq.Builder CreateBuilder()
		{
			return new EmojiUploadInfoReq.Builder();
		}
		public override EmojiUploadInfoReq.Builder ToBuilder()
		{
			return EmojiUploadInfoReq.CreateBuilder(this);
		}
		public override EmojiUploadInfoReq.Builder CreateBuilderForType()
		{
			return new EmojiUploadInfoReq.Builder();
		}
		public static EmojiUploadInfoReq.Builder CreateBuilder(EmojiUploadInfoReq prototype)
		{
			return new EmojiUploadInfoReq.Builder(prototype);
		}
		static EmojiUploadInfoReq()
		{
			EmojiUploadInfoReq.defaultInstance = new EmojiUploadInfoReq().MakeReadOnly();
			EmojiUploadInfoReq._emojiUploadInfoReqFieldNames = new string[]
			{
				"ClientMsgID",
				"EmojiBuffer",
				"ExternXML",
				"MD5",
				"Report",
				"StartPos",
				"ToUserName",
				"TotalLen",
				"Type"
			};
			EmojiUploadInfoReq._emojiUploadInfoReqFieldTags = new uint[]
			{
				74u,
				34u,
				58u,
				10u,
				66u,
				16u,
				50u,
				24u,
				40u
			};
			object.ReferenceEquals(micromsg.Proto.EmojiUploadInfoReq.Descriptor, null);
		}
	}
}
